﻿class TraceMouse {
	private var nTrace:Number;	

	function TraceMouse(){
		_root.pepe=this;
		_root.onMouseDown=function(){
			_root.pepe.nTrace=setInterval(_root.pepe.traceo,50);
		}
		_root.onMouseUp=function(){
			clearInterval(_root.pepe.nTrace);
			trace("suelto");
		}
	}
	
	private function traceo(){
		trace(_xmouse+";"+";"+_ymouse+"|");
	}
}